<template>
  <div class="block">
    <el-pagination
      @current-change="handleCurrentChange"
      :current-page.sync="paging.page"
      :page-size="paging.limit"
      layout="total, prev, pager, next"
      :total="paging.total"
    >
    </el-pagination>
  </div>
</template>
<script>
export default {
  props: ['paging'],
  data() {
    return {}
  },
  methods: {
    handleCurrentChange(val) {
      this.$emit('change', val)
    },
  },
}
</script>
<style lang="scss" scoped></style>
